classdef HalfGenerationChanger
    %UNTITLED3 Summary of this class goes here
    %   Detailed explanation goes here
    
    properties
    end
    
    methods
        function execute(~, obj)
            obj.generate_random_pattern
            obj.compute_objectives
            for k=1:(ceil(obj.size/4))
                obj.create_children();
            end
            obj.individuals((obj.size-2*ceil(obj.size/4)+1):obj.size) = obj.next_generation;

        end
    end
    
end

